package com.jims.master.modules.doctor.entity;


import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jims.master.common.persistence.DataEntity;
/**
 * Created by Future on 2017/7/27.
 */
public class LabResult extends DataEntity<LabResult> {

    private static final long serialVersionUID = 1L;
    private String testNo;		// test_no
    private String itemNo;		// item_no
    private String printOrder;		// print_order
    private String reportItemName;		// report_item_name
    private String reportItemCode;		// report_item_code
    private String result;		// result
    private String units;		// units
    private String abnormalIndicator;		// abnormal_indicator
    private String instrumentId;		// instrument_id
    private Date resultDateTime;		// result_date_time
    private String printContext;		// print_context
    private String resultRange;		// result_range

    public LabResult() {
        super();
    }

    public LabResult(String id){
        super(id);
    }

    @Length(min=1, max=40, message="test_no长度必须介于 1 和 40 之间")
    public String getTestNo() {
        return testNo;
    }

    public void setTestNo(String testNo) {
        this.testNo = testNo;
    }

    @Length(min=1, max=11, message="item_no长度必须介于 1 和 11 之间")
    public String getItemNo() {
        return itemNo;
    }

    public void setItemNo(String itemNo) {
        this.itemNo = itemNo;
    }

    @Length(min=1, max=11, message="print_order长度必须介于 1 和 11 之间")
    public String getPrintOrder() {
        return printOrder;
    }

    public void setPrintOrder(String printOrder) {
        this.printOrder = printOrder;
    }

    @Length(min=0, max=40, message="report_item_name长度必须介于 0 和 40 之间")
    public String getReportItemName() {
        return reportItemName;
    }

    public void setReportItemName(String reportItemName) {
        this.reportItemName = reportItemName;
    }

    @Length(min=0, max=20, message="report_item_code长度必须介于 0 和 20 之间")
    public String getReportItemCode() {
        return reportItemCode;
    }

    public void setReportItemCode(String reportItemCode) {
        this.reportItemCode = reportItemCode;
    }

    @Length(min=0, max=20, message="result长度必须介于 0 和 20 之间")
    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Length(min=0, max=8, message="units长度必须介于 0 和 8 之间")
    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    @Length(min=0, max=1, message="abnormal_indicator长度必须介于 0 和 1 之间")
    public String getAbnormalIndicator() {
        return abnormalIndicator;
    }

    public void setAbnormalIndicator(String abnormalIndicator) {
        this.abnormalIndicator = abnormalIndicator;
    }

    @Length(min=0, max=8, message="instrument_id长度必须介于 0 和 8 之间")
    public String getInstrumentId() {
        return instrumentId;
    }

    public void setInstrumentId(String instrumentId) {
        this.instrumentId = instrumentId;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getResultDateTime() {
        return resultDateTime;
    }

    public void setResultDateTime(Date resultDateTime) {
        this.resultDateTime = resultDateTime;
    }

    @Length(min=0, max=80, message="print_context长度必须介于 0 和 80 之间")
    public String getPrintContext() {
        return printContext;
    }

    public void setPrintContext(String printContext) {
        this.printContext = printContext;
    }

    @Length(min=0, max=30, message="result_range长度必须介于 0 和 30 之间")
    public String getResultRange() {
        return resultRange;
    }

    public void setResultRange(String resultRange) {
        this.resultRange = resultRange;
    }

}